<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">


	<link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">

	<link href="https://cdn.bootcss.com/bootstrap-datetimepicker/4.17.47/css/bootstrap-datetimepicker.min.css" rel="stylesheet">










<title>添加用户信息</title>
</head>
<body>

	<form name="input" action="${pageContext.request.contextPath}/data/adduser" method="post">
		Username: <input type="text" name="userName">
		PassWord: <input type="text" name="passWord">
		cname: <input type="text" name="cname">
		email: <input type="text" name="email">

		<div class="form-group">
			<label class="control-label">日期1：</label>
			<div class="input-group date">
				<input class="form-control  validate[required,date[yyyy-MM-dd]]" name="datetimepicker" id="datetimepicker" placeholder="yyyy-MM-dd" />
				<span class="input-group-addon">
            <span class="glyphicon glyphicon-calendar"></span>
        </span>
			</div>
		</div>



		<input type="submit" value="Submit">
	</form>



	<form name="Form2" action="${pageContext.request.contextPath}/data/uploadFile" method="post"  enctype="multipart/form-data">
		<h1>使用spring mvc提供的类的方法上传文件</h1>
		<input type="file" name="file">
		<input type="submit" value="upload"/>
	</form>

</body>

<script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
<!-- HTML5 Shiv 和 Respond.js 用于让 IE8 支持 HTML5元素和媒体查询 -->
<!-- 注意： 如果通过 file://  引入 Respond.js 文件，则该文件无法起效果 -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
<![endif]-->
<script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>

<script src="https://cdn.bootcss.com/moment.js/2.18.1/moment-with-locales.min.js"></script>
<script src="https://cdn.bootcss.com/bootstrap-datetimepicker/4.17.47/js/bootstrap-datetimepicker.min.js"></script>

<script>

	$(document).ready(function(){

		$('#datetimepicker').datetimepicker({
			locale: 'zh-cn',
			format:"YYYY-MM-DD hh:mm:ss"
		});





	});
</script>
	

</html>